//
// Created by mio on 25-5-1.
//

#ifndef SIGSERVER_H
#define SIGSERVER_H

#include "../Net/TcpServer.h"


class SigServer : public TcpServer
{
public:
    static std::shared_ptr<SigServer> Create(EventLoop* eventloop);
    ~SigServer();

    SigServer(const SigServer& other) = delete;
    SigServer& operator=(const SigServer& other) = delete;

private:
    SigServer(EventLoop* eventloop);
    virtual TcpConnectionPtr OnConnect(int fd) override;

private:
    EventLoop* loop_;
};

#endif //SIGSERVER_H
